package com.ruyiadmin.springboot.entity_data_model.entity_model.system_model;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.ruyiadmin.springboot.common_infrastructure.models.base_entity_model.RuYiAdminBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 系统附件模型
 * </p>
 *
 * @author RuYiAdmin
 * @since 2022-07-11
 */
@TableName("sys_attachment")
@ApiModel(value = "SysAttachment对象", description = "系统附件表")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysAttachment extends RuYiAdminBaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("附件名称")
    @TableField("FILE_NAME")
    @NotNull
    @Length(max = 1024)
    private String fileName;

    @ApiModelProperty("文件大小")
    @TableField("FILE_SIZE")
    @NotNull
    private Double fileSize;

    @ApiModelProperty("存储路径")
    @TableField("FILE_PATH")
    @NotNull
    @Length(max = 512)
    private String filePath;

    @ApiModelProperty("业务编号")
    @TableField("BUSINESS_ID")
    @NotNull
    private String businessId;

}
